public class ThirdPartyFruitAdapter implements Fruit {
    private ThirdPartyFruit thirdPartyFruit;

    public ThirdPartyFruitAdapter(ThirdPartyFruit thirdPartyFruit) {
        this.thirdPartyFruit = thirdPartyFruit;
    }

    @Override
    public String getName() {
        return thirdPartyFruit.getFruiteName();
    }

    @Override
    public float getPrice() {
        return thirdPartyFruit.getFruitPrice();
    }
}
